package com.fsl.alibabanacosconfigclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope
public class TestController {

    //@Value("${yuddspace.title:}")
    //private String title;


    @Value("${yuddspace.name:}")
    private String name;

    @Value("${yuddspace.age:}")
    private String age;

    @Value("${yuddspace.address:}")
    private String address;

    @GetMapping("/test")
    public String hello() {
        return "name = "+name+",age = "+age+",address = "+address;
    }


}
